//
// Created by Never on 2019/9/16.
//

#include "Log.h"

int main(int argc, char** argv) {
    GlogWrapper::initialLog("GlogWrapper");
    GlogWrapper::setLogEnv(true, "./", google::INFO, GlogWrapper::PROCESS_STATE);
    std::vector<int> v({1, 1, 2, 3, 4});
    std::string s(" ");
    GlogWrapper::loopWithSpecifiedDelimeter(v, s, google::WARNING, GlogWrapper::DETAILED_INFO);
    std::vector<std::vector<int>> v2({{1, 2, 3, 4}, {4, 5, 6, 7}});
    GlogWrapper::loopWithSpecifiedDelimeter(v2, "\n", " ", google::INFO, GlogWrapper::DETAILED_INFO);
    LOG(INFO)<<"one info\n";
    LOG_IF(INFO, 1 > 0) << "1 > 0\n";
    LOG_IF(INFO, 1 < 0) << "1 < 0\n";
    LOG(WARNING) << "It is a warning information\n";
    LOG(ERROR) << "It is an error information";
    DLOG(INFO) << "It is a debug information";
    RAW_LOG(INFO, "It is pthread GlogWrapper");
    VLOG(GlogWrapper::DETAILED_INFO)<<"Vlog details";
    return 0;
}